package com.cmwa.scbp.business.prdSellChannel.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cmwa.scbp.base.mvc.entity.Page;
import com.cmwa.scbp.base.mvc.entity.SearchParam;
import com.cmwa.scbp.business.prdSellChannel.dao.PrdSellChannelDao;
import com.cmwa.scbp.business.prdSellChannel.entity.PrdSellChannelVo;
import com.cmwa.scbp.business.prdSellChannel.service.PrdSellChannelService;

/**
 * 销售渠道信息表业务实现层
 * 
 * @author ex-sujh
 * @date 2019-02-20 09:23:53
 */
@Service
public class PrdSellChannelServiceImpl implements PrdSellChannelService {
	@Resource
	private PrdSellChannelDao prdSellChannelDao;
	
		
	@Override
	public void insertPrdSellChannel(PrdSellChannelVo prdSellChannel) {
		prdSellChannelDao.insertPrdSellChannel(prdSellChannel);
	}
	
		
		
	@Override
	public void physicDeletePrdSellChannelById(String id) {
		prdSellChannelDao.physicDeletePrdSellChannelById(id);
	}
	
		
		
	@Override
	public void logicDeletePrdSellChannelById(String id) {
		prdSellChannelDao.logicDeletePrdSellChannelById(id);
	}
	
		
		
	@Override
	public void updatePrdSellChannelById(PrdSellChannelVo prdSellChannel) {
		prdSellChannelDao.updatePrdSellChannelById(prdSellChannel);
	}
	
		
		
	@Override
	public Page<PrdSellChannelVo> prdSellChannelListPage(SearchParam sp) {
		List<PrdSellChannelVo> items = prdSellChannelDao.prdSellChannelListPage(sp);
		return Page.create(items, sp.getStart(), sp.getLimit(), sp.getTotal());
	}
	
		
		
	@Override
	public PrdSellChannelVo getPrdSellChannelById(String id) {
		return prdSellChannelDao.getPrdSellChannelById(id);
	}



	@Override
	public void delPrdSellChannelByIds(String channelIds) {
		prdSellChannelDao.delPrdSellChannelByIds(channelIds);
	}
	
		
	
}
